export default {
  //接口
  api: function () {
    let version = wx.getAccountInfoSync().miniProgram.envVersion
    switch (version) {
      case 'develop': //开发预览版
        return 'https://jiufengtea.xmtjx168.com:8090/prod-api'
      case 'trial': //体验版
        return 'https://jiufengtea.xmtjx168.com:8090/prod-api'
      case 'release': //正式版
        return 'https://jiufengtea.xmtjx168.com:8090/prod-api'
      default: //未知,默认调用正式版
        return 'https://jiufengtea.xmtjx168.com:8090/prod-api'
    }
  }
}
